<template>
  <view class="container">
    <nav-bar title="账户与安全" :showBack="true"></nav-bar>
    
    <view class="content">
      <!-- 修改密码 -->
      <view class="menu-item" @click="navigateTo('/pages/account/password')">
        <text class="menu-text">修改密码</text>
        <uni-icons type="forward" size="16" color="#999"></uni-icons>
      </view>
      
      <!-- 手机号绑定 -->
      <view class="menu-item">
        <text class="menu-text">手机号绑定</text>
        <view class="right-content">
          <text class="phone-text">138****8888</text>
          <uni-icons type="forward" size="16" color="#999"></uni-icons>
        </view>
      </view>
      
      <!-- 实名认证 -->
      <view class="menu-item">
        <text class="menu-text">实名认证</text>
        <view class="right-content">
          <text class="status-text">已认证</text>
          <uni-icons type="forward" size="16" color="#999"></uni-icons>
        </view>
      </view>
    </view>
  </view>
</template>

<script>
import NavBar from '@/components/nav-bar/index.vue'

export default {
  components: {
    NavBar
  },
  methods: {
    navigateTo(url) {
      uni.navigateTo({
        url
      })
    }
  }
}
</script>

<style lang="scss" scoped>
.container {
  min-height: 100vh;
  background-color: #f5f5f5;
}

.content {
  padding: 20rpx;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30rpx 20rpx;
  background-color: #fff;
  margin-bottom: 2rpx;
  
  .menu-text {
    font-size: 28rpx;
    color: #333;
  }
  
  .right-content {
    display: flex;
    align-items: center;
    
    .phone-text, .status-text {
      font-size: 28rpx;
      color: #999;
      margin-right: 10rpx;
    }
  }
}
</style>